package com.example.activity.dao;

import com.example.activity.pojo.ApplForm;

import org.springframework.data.jpa.repository.JpaRepository;

import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.Set;

/**
 * @author Create by Ron
 * @date 2020/5/14 11:56
 */
@Repository
public interface AppFormDao extends JpaRepository<ApplForm, Integer> {


    @Query("select a.formId from ApplForm a where a.geaUserId= ?1 ")
    Set<String> findFormIdsByGeaUserId(int id);

}
